import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import Paging from '@dfeidao/fd-w000010';
import p001 from './p001';
export default async function a003(fd: IFeidaoAiBrowserComponent, e: { page_no: number }) {
	// todo
	const page_no = e.page_no;
	const n = fd.data.node.querySelector<HTMLInputElement>('[data-id="post_name"]');
	const v = n.value;
	const res = await nodejs('GuoKai/zj-000007/s001', {

		post_name: v,
		page_no: page_no
	});
	console.log('ww', res);
	render(fd, res, p001, 'p001', 'inner');
	const p = fd.data.node.querySelector<Paging>('[data-id="Paging"]');
	p.setAttribute('page-no', page_no + '');

}
